<?php
/** Zend_Controller_Action */
require_once 'Zend/Controller/Action.php';

class ErrorController extends Zend_Controller_Action
{

	
	
	public function errorAction()
    {
    	$request = $this->getRequest();
		$lang = $request->getParam('lang');
		$this->view->lang = $lang;
		// Set up the translator
		Zend_Loader::loadClass('Zend_Translate');
		// Pass general view variables
		$translate = new Zend_Translate('array', 'languages/general.ro', 'ro');
		$translate->addTranslation('languages/general.hu', 'hu');
		$translate->setLocale($lang);
		$messages = $translate->getMessages();
		$this->view->general = $messages;
    }
    
}

?>